package com.qf.recharge.controller;

import com.qf.common.core.utils.R;
import com.qf.recharge.param.RechargeParam;
import com.qf.recharge.service.RechargeService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author zdl
 * @date 2025/4/3
 */
@RestController
@RequestMapping("/order")
public class RechargeController {
    @Resource
    private RechargeService rechargeService;

    @PostMapping("/add")
    private R<?> addRecharge(@RequestBody RechargeParam rechargeParam){
        String orderNo = rechargeService.addRecharge(rechargeParam);
        return R.ok(orderNo);
    }
}
